﻿module Utils {
    export function RGBtoHex(r: number, g: number, b: number) {
        var hexString = '0x' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
        return parseInt(hexString, 16);
    }
}